package homework.work8;

public class Square {
    private int side;

    //面积
    public int area(){
        return side*side;
    }

    //周长
    public int perimeter(){
        return 4*side;
    }

    //构造器


    public Square() {
    }

    public Square(int side) {
        this.side = side;
    }

    //get and set side
    public int getSide() {
        return side;
    }

    public void setSide(int side) {
        this.side = side;
    }
}
